<%-- 
    Document   : cadveiculos
    Created on : 06/04/2013, 18:20:41
    Author     : helton
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" 
        import="model.entity.Proprietario" %>
<jsp:useBean id="obj" type="Proprietario" scope="request"/>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="js/mascaras.js"></script>
        <link rel="stylesheet" href="css/estilo.css" type="text/css"/>
    </head>
    <body>
        <h1 align="center">Cadastro e Manutenção de Proprietarios</h1>
        <div class="alteraProprietario">
        <form method="post" action="/av1/altproprietario">
            <table align="center" >
                <tr>
                    <td align="right" width="200">Nome:</td>
                    <td align="left">
                        <input type="text" name="nome" id="nome" value='${obj.nome}' onchange="ConverteMaiuscula(this);"
                               maxlength="100" size="40"/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">CPF:</td>
                    <td align="left">
                        <input type="text" name="cpf" id="cpf" value='${obj.cpf}' onkeypress="mask(this, '###.###.###-##');"
                               maxlength="14" size="10"/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">Data de Nascimento:</td>
                    <td align="left">
                        <input type="date" name="datanasc" id="datanasc" onclick="mask(this, '##/##/####');"
                               value='${obj.dataDeNascimento}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">Endereço:</td>
                    <td align="left">
                        <input type="text" name="end" id="end" value='${obj.endereco}' onchange="ConverteMaiuscula(this);"
                               maxlength="100" size="40"/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">Bairro:</td>
                    <td align="left">
                        <input type="text" name="bairro" id="bairro" maxlength="100" size="40" onchange="ConverteMaiuscula(this);"
                               value='${obj.bairro}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">CEP:</td>
                    <td align="left">
                        <input type="text" name="cep" id="cep" maxlength="9" size="7" onkeypress="mask(this, '#####-###')"
                               value='${obj.cep}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">Telefone:</td>
                    <td align="left">
                        <input type="text" name="fone" id="fone" maxlength="14" onkeypress="mask(this, '## ####-####')"
                               value='${obj.fone}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">e-mail:</td>
                    <td align="left">
                        <input type="text" name="email" id="email" size="40" onchange="ConverteMaiuscula(this);"
                               value='${obj.email}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200">Cidade:</td>
                    <td align="left">
                        <input type="text" name="cidade" id="cidade" onchange="ConverteMaiuscula(this);"
                               value='${obj.cidade}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="200"></td>
                    <td align="left">
                        <input type="submit" value="Salvar"/>
                    </td>
                </tr>
            </table>
        </form>
        </div>
    </body>
</html>
